<?php

class Salon extends MY_Model {

 
    function Salon()
    {
        // Call the Model constructor
        parent::MY_Model();
	
	$this->nombreTabla = "salon";
	$this->idT1= "idSalon";
	$this->nombreCampo="nombre";


		$this->campos[] = array("realname" => "idResto",
					"clase" => "partof",
					"label" => "Restaurant",
					"modelo" => "Restaurant",
					"rules" => "required|integer");
		

		$this->campos[] = array("realname" => "nombre",
					"clase" => "text",
					"label" => "Salon",
					"rules" => "required||alpha_numeric_space|min_length[3]|max_length[45]");

		// Nombre de los modelos que son hijos
		 $this->hijos = array('salonfecha'=>'Fechas');	

 		$this->extras[] = array('clase'=>'linkitem',
					'label'=>'Modificar Distribución',
					'modelo'=>'salon',
					'accion'=>'ver',
					'valor'=>'mapa/mostrarSalon/');
		

    }
     

 
}


?>
